home *** CD-ROM | disk | FTP | other *** search
/ PC-SIG: World of Games / PC-SIG World of Games (CDRM1080710) (1993).iso / 1221 / INSTALL.BAT < prev    next >
DOS Batch File  |  1990-03-22  |  2KB  |  79 lines

  1. echo off
  2. if '%1'=='' goto NoParam
  3. batext %1
  4. if errorlevel 99 goto NoDrive
  5. if errorlevel 1 goto MakeDir
  6. if errorlevel 0 goto DirOK
  7. :NoDrive
  8. echo The drive %1 does not exist!  Please try again.
  9. goto Abort
  10. :MakeDir
  11. echo Creating directory %1
  12. mkdir %1
  13. :DirOk
  14. echo ARCANUM Computing Installation
  15. echo ------------------------------
  16. echo Select program to install by number:
  17. echo  1) Mah Jongg game and Tile Maker utility
  18. echo  2) Mah Jongg, game only
  19. echo  3) Tile Maker utility only
  20. echo ------------------------------
  21. echo Note:  select option 1 only if installing to a hard disk as all
  22. echo files will not fit on a single floppy disk.
  23. batext
  24. if errorlevel 4 goto Abort
  25. if errorlevel 3 goto Install3
  26. if errorlevel 2 goto Install2
  27. if errorlevel 1 goto Install1
  28. goto Abort
  29. :Install1
  30. echo Installing Mah Jongg and Tile Maker to %1
  31. copy flags.til %1
  32. copy flags.txt %1
  33. copy mahjongg.doc %1
  34. copy mahjongg.txt %1
  35. copy mahjongg.exe %1
  36. copy mahjongg.til %1
  37. copy statgen.exe %1
  38. copy orderfrm.txt %1
  39. copy sharewre.txt %1
  40. copy tiles.com %1
  41. batext cd %1
  42. tiles
  43. if exist tilemakr.exe del tiles.com
  44. echo Installation complete.  Type 'mahjongg' to run.
  45. goto Abort
  46. :Install2
  47. echo Installing Mah Jongg to %1
  48. copy flags.til %1
  49. copy flags.txt %1
  50. copy mahjongg.doc %1
  51. copy mahjongg.txt %1
  52. copy mahjongg.exe %1
  53. copy statgen.exe %1
  54. copy orderfrm.txt %1
  55. copy sharewre.txt %1
  56. batext cd %1
  57. echo Installation complete.  Type 'mahjongg' to run.
  58. goto Abort
  59. :Install3
  60. echo Installing Tile Maker to %1
  61. copy flags.til %1
  62. copy flags.txt %1
  63. copy mahjongg.til %1
  64. copy tiles.com %1
  65. batext cd %1
  66. tiles
  67. if exist tilemakr.exe del tiles.com
  68. echo Installation complete.  Type 'tilemakr' to run.
  69. goto Abort
  70. :NoParam
  71. echo %1
  72. echo You need to specify where you want the program installed.  For example,
  73. echo    INSTALL A:
  74. echo will install it on your A: drive, or
  75. echo    INSTALL C:\GAMES
  76. echo will install to the \games directory on your C: drive.
  77. echo Try again...
  78. :Abort
  79.